package com.yangyang.rpc.core.netcom.common.server;

import com.yangyang.rpc.core.serialize.Serializer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 抽象服务端
 * Created by chenshunyang on 2016/11/19.
 */
public abstract class AbstractServer {
    public static final Logger logger = LoggerFactory.getLogger(AbstractServer.class);

    public abstract void start(final int port, final Serializer serializer) throws Exception;

    public abstract void destroy() throws Exception;
}
